package com.xbongbong.paas.pojo;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.domain.entity.ChartEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 图表dto
 * @author xinpeng.jiang
 * @date 2021/5/13 17:32
 * @version 1.0
 * @since V1.0
 */
@Getter
@Setter
@ToString
public class ChartDTO extends BaseDTO {
    private static final long serialVersionUID = -1778383252581336700L;
    /**
     * 图表
     */
    @NotNull(message = "{dto.msg.ChartDTO.chartEntity.NotNull}")
    @Valid
    private ChartEntity chartEntity;

    public ChartDTO() {
    }

    public ChartDTO(@NotNull(message = "{dto.msg.ChartDTO.chartEntity.NotNull}") @Valid ChartEntity chartEntity) {
        this.chartEntity = chartEntity;
    }
}
